//package me.shiqiang.im.utils;
//
//import com.aliyuncs.DefaultAcsClient;
//import com.aliyuncs.auth.BasicCredentials;
//import com.aliyuncs.auth.STSAssumeRoleSessionCredentialsProvider;
//import com.aliyuncs.ecs.model.v20140526.DescribeInstancesRequest;
//import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse;
//import com.aliyuncs.exceptions.ClientException;
//import com.aliyuncs.profile.DefaultProfile;
///**
// * Created by John on 2018/8/1
// */
//public class UseRoleArnSample {
////    public static void main(String[] args) {
////        DefaultProfile profile = DefaultProfile.getProfile("cn-shanghai");
////        BasicCredentials basicCredentials = new BasicCredentials(
////                "LTAIXbwPIG4caDuT",
////                "OUF2CS0F2iqLF6MqiWwa5Nw7iLkHEW"
////        );
////        STSAssumeRoleSessionCredentialsProvider provider = new STSAssumeRoleSessionCredentialsProvider(
////                basicCredentials,
////                "acs:ram::1080280090484334:role/approle",
////                profile
////        );
////        DefaultAcsClient client = new DefaultAcsClient(profile, provider);
////        DescribeInstancesRequest request = new DescribeInstancesRequest();
////        try {
////            DescribeInstancesResponse response = client.getAcsResponse(request);
////            System.out.println(11);
////        } catch (ClientException e) {
////            System.err.println(e.toString());
////        }
////    }
//}
